let myHandler = async function (event, context, callback, logger) {
  logger.info(event);

  // do something here
  let num1: number = 0
  let num2: number = 0

  if (event.body) {
    let _body = JSON.parse(event.body)
    num1 = _body.num1
    num2 = _body.num2
  } else {
    num1 = event.num1
    num2 = event.num2
  }

  let sum = num1 + num2

  logger.info(`${sum} = ${num1}+${num2} `)

  callback({
    code: 0,
    desc: "Success.",
    body: {
      result: sum
    }
  });
};

export { myHandler };